package com.vhall.component.controller.interactive.facade;


import com.vhall.component.entity.interactive.ListReqVo;
import com.vhall.component.entity.interactive.vo.CreateReqVo;
import com.vhall.component.entity.interactive.vo.QuestionRspVo;
import com.vhall.component.entity.interactive.vo.ToggleAlsoAskReqVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * @author xianglei
 * @date 2021/7/8 16:19
 */
@FeignClient(value = "QaApiFacade", path = "/v4/api/qa")
public interface QaApiFacade {

    @PostMapping(value = "/create")
    QuestionRspVo create(@Validated CreateReqVo reqVo);


    @PostMapping(value = "/lists")
    Map<String, Object> lists(@Validated ListReqVo reqVo);

    @PostMapping(value = "/toggle-also-ask")
    QuestionRspVo toggleAlsoAsk(@Validated ToggleAlsoAskReqVo reqVo);
}
